from pydantic import Field
from pydantic_settings import BaseSettings


class BaseConfig(BaseSettings):
    postgres_user: str = Field(default="postgres")
    postgres_password: str = Field(default="postgres")
    postgres_db: str = Field(default="postgres")
    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"
        
if __name__=='__main__':
    print(BaseConfig().model_dump())